package etcMycat.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import etcMycat.entity.ETCToSZ;
import etcMycat.mapper.CarInOutMapper;
import etcMycat.service.CarInOutService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarInOutServiceImpl extends ServiceImpl<CarInOutMapper, ETCToSZ> implements CarInOutService {

    @Resource
    private CarInOutMapper carInOutMapper;
    @Override
    public List<ETCToSZ> rankOut() {
        List<ETCToSZ> rankOut=carInOutMapper.countout();
        return rankOut;
    }

    @Override
    public List<ETCToSZ> rankIn() {
        List<ETCToSZ> rankIn=carInOutMapper.countIn();
        return rankIn;
    }
}
